﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="List.aspx.cs" Inherits="SZSLSystem.Web.Admin.SystemLog.List" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>系统日志管理</title>
    <link rel="stylesheet" type="text/css" href="../Images/style.css" />
    <link href="/Css/pagination.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="../../Js/jquery-1.3.2.min.js"></script>
    <script type="text/javascript" src="../../Js/jquery.pagination.js"></script>
    <script type="text/javascript" src="../Js/function.js"></script>
    <script type="text/javascript">
        $(function() {
            //分页参数设置
            $("#Pagination").pagination(<%=pcount %>, {
            callback: pageselectCallback,
            prev_text: "« 上一页",
            next_text: "下一页 »",
            items_per_page:<%=pagesize %>,
		    num_display_entries:3,
		    current_page:<%=page %>,
		    num_edge_entries:2,
		    link_to:"?page=__id__"
           });
        });
        function pageselectCallback(page_id, jq) {
                //alert(page_id); 
        }
        //隔行变色
        $(function() {
            $(".msgtable tr:nth-child(odd)").addClass("tr_bg"); 
            $(".msgtable tr").hover(
			    function() {
			        $(this).addClass("tr_hover_col");
			    },
			    function() {
			        $(this).removeClass("tr_hover_col");
			    }
		    );
        });
    </script>
</head>
<body style="padding: 10px;">
    <form id="form1" runat="server">
    <div class="navigation">
        <b>您当前的位置：首页 &gt; 系统管理 &gt; 系统日志列表</b></div>
    <div class="spClear">
    </div>
    <asp:Repeater ID="rptList" runat="server">
        <HeaderTemplate>
            <table width="100%" border="0" cellspacing="0" cellpadding="0" class="msgtable">
                <tr>
                    <th width="8%">
                        用户帐号
                    </th>
                    <th align="center">
                        日志内容
                    </th>
                    <th align="center" width="10%">
                        日志类型
                    </th>
                    <th align="left" width="13%">
                        记录时间
                    </th>
                </tr>
        </HeaderTemplate>
        <ItemTemplate>
            <tr>
                <td align="center">
                    <%# new SZSLSystem.BLL.Administrator().GetModel(Guid.Parse(Eval("UserID").ToString())).UserName%>
                </td>
                <td>
                    <%#Eval("Title")%>
                </td>
                <td>
                    <%# SZSLSystem.Common.EnumDescription.GetFieldText((SZSLSystem.Common.ExceptionType)int.Parse(Eval("TypeID").ToString()))%>
                </td>
                <td>
                    <%#string.Format("{0:g}",Eval("AddDate"))%>
                </td>
            </tr>
        </ItemTemplate>
        <FooterTemplate>
            </table>
        </FooterTemplate>
    </asp:Repeater>
    <div class="spClear">
    </div>
    <div style="line-height: 30px; height: 30px;">
        <div id="Pagination" class="right flickr">
        </div>
        <div class="left">
            <span class="btn_bg"></span>
        </div>
    </div>
    </form>
</body>
</html>
